package com.dingwen.treasure.business.juc;

import java.util.concurrent.ThreadLocalRandom;

/**
 * 　ThreadLocalRandomApi
 * 　@author dingwen
 * 　@date 2022/7/1
 *
 */
public class ThreadLocalRandomApi {
    public static void main(String[] args) {
         int i = ThreadLocalRandom.current().nextInt(100);
        System.out.println("i = " + i);

        ThreadLocal<String> test = ThreadLocal.withInitial(() -> "test");
    }
}
